﻿using PetaPoco;
using PmSoft;
using PmSoft.Caching;
using PmSoft.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Modules.Project.Entitys
{
    /// <summary>
    /// 项目考勤推送记录
    ///</summary>
    [TableName("project_checkin_push_log")]
    [Description("项目考勤推送记录内容")]
    [PrimaryKey("Id", AutoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class ProjectCheckinPushLog : IEntity
    {

        /// <summary>
        /// 主键
        ///</summary>
        [Column("id")]
        public int Id { get; set; }

        /// <summary>
        /// 项目Id
        ///</summary>
        [Column("project_id")]
        public int ProjectId { get; set; }

        /// <summary>
        /// 月份
        ///</summary>
        [Column("month")]
        public int Month { get; set; }

        /// <summary>
        /// 推送内容
        ///</summary>
        [Column("push_data")]
        public string? PushData { get; set; }

        /// <summary>
        /// 是否推送
        ///</summary>
        [Column("has_push")]
        public bool HasPush { get; set; }

        /// <summary>
        /// 创建时间
        ///</summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; }

        #region IEntity 成员

        [Ignore]
        object IEntity.EntityId { get { return Id; } }

        #endregion IEntity 成员
    }
}
